import React from 'react';
import styled from './orderList.module.css';
import { IPaginateMeta } from '@/views/types';
export default function Operate({
    paginateMeta,
    changePage,
}: {
    paginateMeta: IPaginateMeta;
    changePage: (type: string) => void;
}) {
    return (
        <div className={styled.operate}>
            <div className={styled.checkAll}>
                <input type="checkbox" />
                <span>Select All</span>
                {/* <button>确认批量收货</button> */}
            </div>
            <div className={styled.page}>
                <button
                    onClick={() => changePage('prev')}
                    disabled={paginateMeta.prev <= 1}
                    className={styled.prev}
                >
                    Prev
                </button>
                <button
                    onClick={() => changePage('next')}
                    disabled={!paginateMeta.next}
                    className={styled.next}
                >
                    Next
                </button>
            </div>
        </div>
    );
}
